#!/usr/bin/python

from decimal import *
import os


#simulation en lancant le programme c++
tab = range(0,20,1)
os.system("rm -rf simulation.out")
os.system("touch simulation.out")
prog = "./a.out"

for x in tab:
    cmd = prog +" "+str(x)+ " >> simulation.out"
    os.system(cmd)
    print cmd;
